<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
	<xsl:output method="xhtml" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
	<xsl:include href="DelphiDoc.Shared.xslt"/>
	<xsl:template match="namespace">
		<div class="namespaceTitle">
			Namespace: <xsl:value-of select="@name"/>
		</div>
		<div class="namespace">
			<xsl:if test="class">
				<div class="class">
					<div class="classTitle">Classes</div>
					<xsl:apply-templates select="class" mode="brief"/>
				</div>
			</xsl:if>
			<xsl:if test="contains">
				<div class="contains">
					<div class="containsTitle">Contains</div>
					<xsl:apply-templates select="contains" mode="brief"/>
				</div>
			</xsl:if>
		</div>
	</xsl:template>
	<xsl:template match="contains" mode="brief">
		<a class="containsLink" href="{@name}.html">
			<xsl:value-of select="@name"/>
		</a>
	</xsl:template>
	<xsl:template match="class" name="class" mode="brief">
		<a class="classLink" href="{@name}.html">
			<xsl:value-of select="@name"/>
		</a>
	</xsl:template>
</xsl:stylesheet>
